@import "./normalize.css";
@import "../iconfont/iconfont.css";

/* 
  750/15 = 50px; 1rem = 50px
*/
html {
    font-size: 50px;
}
@media screen and (min-width: 320px) {
    html {
        font-size: 21.3333333333333333333333333333333px;
    }
}
@media screen and (min-width: 360px) {
    html {
        font-size: 24px;
    }
}
@media screen and (min-width: 384px) {
    html {
        font-size: 25.6px;
    }
}
@media screen and (min-width: 400px) {
    html {
        font-size: 26.66666666666666666666667px;
    }
}
@media screen and (min-width: 414px) {
    html {
        font-size: 27.6px;
    }
}
@media screen and (min-width: 424px) {
    html {
        font-size: 28.26666666666666666666667px;
    }
}
@media screen and (min-width: 480px) {
    html {
        font-size: 32px;
    }
}
@media screen and (min-width: 540px) {
    html {
        font-size: 36px;
    }
}
@media screen and (min-width: 720px) {
    html {
        font-size: 48px;
    }
}
@media screen and (min-width: 750px) {
    html {
        font-size: 50px !important;
    }
}
/* @media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
} */

body {
    overflow: hidden; 
    /* 加上overflow:hidden 就可以让整个页面超出不会滚动 */
    min-width: 320px !important;
    max-width: 750px !important;
    width: 100%;
    margin: 0 auto;
    line-height: 1.5;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
    background-color: #f1f1f1;
    font-size: 0.32rem;
}

/*:root -> 获取根元素html*/
:root {
    --color-text: #666;
    --color-high-text: #ff5777;
    --color-tint: #ff8198;
    --color-background: #fff;
    /* --font-size: 14px; */
    --line-height: 1.5;
    --color: #333;
    --nav-hight: 1.76rem;
    --tabbar-hight: 1.76rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    user-select: none; /* 禁止用户鼠标在页面上选中文字/图片等 */
    -webkit-tap-highlight-color: transparent; /* webkit是苹果浏览器引擎，tap点击，highlight背景高亮，color颜色，颜色用数值调节 */
    /* background: var(--color-background); */
    color: var(--color-text);
    /* rem vw/vh */
    /* width: 100vw; */
}

b,
i,
em,
u {
    font-style: normal;
    font-weight: normal;
}
a {
    color: var(--color-text);
    text-decoration: none;
}

li {
    list-style: none;
}

.clear-fix::after {
    clear: both;
    content: "";
    display: block;
    width: 0;
    height: 0;
    visibility: hidden;
}

.clear-fix {
    zoom: 1;
}

.left {
    float: left;
}

.right {
    float: right;
}
